import request from '@/utils/request'



export function submit(data) {
  return request({
    url: 'buss/sectioninfo/submit',
    method: 'post',
    data
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/sectioninfo/resubmit',
    method: 'post',
    data
  })
}


export function del(ids) {
  return request({
    url: 'buss/sectioninfo/delete',
    method: 'post',
    data: ids
  })
}

export function getOne(id) {
  return request.get('buss/sectioninfo/getOne?id='+id)
}

export function getCompanyBySectionId(sectionId) {
  return request.get('buss/sectioninfo/getCompanyBySectionId?sectionId='+sectionId)
}

export function getCompanyBySecId(sectionId) {
  return request.get('buss/sectioninfo/getCompanyBySecId?sectionId='+sectionId)
}

export function getTablePage(data) {
  return request.post('buss/sectioninfo/paging', data)
}


export function getSubcontractRegistration(data) {
  return request.post('buss/sectioninfo/getSubcontractRegistration', data)
}



export default {
  submit,
  resubmit,
  getOne,
  del,
  getTablePage,
  getCompanyBySectionId,
  getSubcontractRegistration,
  getCompanyBySecId,
}
